Fix missing const declaration in adminRoutes.js causing server crash - #21
Conversation
Signed-off-by: Tejashwini <deviteja76@gmail.com>
Thanks for the fix! The syntax correction in adminRoutes.js looks good and the PR description is clear. However, I noticed this PR also includes changes to frontend/package-lock.json, which appear unrelated to the reported issue. Please remove the unrelated changes so the PR stays focused on a single bug fix. Once the diff only contains the required fix, I'll be happy to review it again. |
Signed-off-by: Tejashwini <deviteja76@gmail.com>
Description
Fixed a syntax error in
backend/routers/adminRoutes.jsthat crashed the server on startup. The import forgetActivityLogsControllerwas missing its openingconst {declaration, causing anUnexpected token '}'error. Added the missing declaration so both controller imports are properly separated. Verified the server starts cleanly and connects to MongoDB.Closes #20
Type of Change
Checklist